static-delta: increase threshold for rollsum to 50%
authorGiuseppe Scrivano <gscrivan@redhat.com>
Tue, 24 Feb 2015 11:16:46 +0000 (12:16 +0100)
committerColin Walters <walters@verbum.org>
Tue, 3 Mar 2015 17:16:17 +0000 (12:16 -0500)
It favours bsdiff usage for files that are not very rollsum friendly.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
src/libostree/ostree-repo-static-delta-compilation.c

index 968b4601f7ce1739b6cd46ae8ce1a56c42d9738f..a4e7ae4222bbdf24575608dc0f6be8952da3db59 100644 (file)
@@ -568,10 +568,10 @@ try_content_rollsum (OstreeRepo                       *repo,
 
   { guint match_ratio = (matches->bufmatches*100)/matches->total;
 
-    /* Only proceed if the file contains (arbitrary) more than 25% of
+    /* Only proceed if the file contains (arbitrary) more than 50% of
      * the previous chunks.
      */
-    if (match_ratio < 25)
+    if (match_ratio < 50)
       {
         ret = TRUE;
         goto out;